import request from "@/router/axios";

//分页查询其他出库信息
export function fetchGetOtherOutboundPage(obj) {
  return request({
    url: "/eims/takeInventory/getOtherOutboundPage",
    method: "get",
    params: obj
  });
}
//分页查询其他出库结算信息
export function getOtherOutboundSettlementPage(obj) {
  return request({
    url: "/eims/takeInventory/getOtherOutboundSettlementPage",
    method: "get",
    params: obj
  });
}

//根据id获取出库详情
export function getTakeInventoryInfo(id) {
  return request({
    url: "/eims/takeInventory/getInfo/" + id,
    method: "get"
  });
}

//新增其他出库
export function addOtherOutbound(obj) {
  return request({
    url: "/eims/takeInventory/saveOtherOutbound",
    method: "post",
    data: obj
  });
}

//修改领用出库
export function editRecipientsOfOutbound(obj) {
  return request({
    url: '/eims/takeInventory/editOutboundInfo',
    method: 'put',
    data: obj
  })
}

//修改领用出库
export function editOtherOutboundSettlementInfo(obj) {
  return request({
    url: '/eims/takeInventory/editOtherOutboundSettlementInfo',
    method: 'post',
    data: obj
  })
}

//审核领用出库
export function auditRecipientsOfOutbound(id) {
  return request({
    url: '/eims/takeInventory/audit/' + id,
    method: 'get',
    params: id
  })
}


//删除
export function delObj(id) {
  return request({
    url: '/eims/takeInventory/' + id,
    method: 'delete'
  })
}
